cairo_save (cr);
- if (gtk_style_context_has_class (context, GTK_STYLE_CLASS_PROGRESSBAR))
- gtk_render_activity (context, cr, x, y, width, height);
- else
- {
- gtk_render_background (context, cr, x, y, width, height);
+ gtk_render_background (context, cr, x, y, width, height);
- if (shadow_type != GTK_SHADOW_NONE)
- gtk_render_frame (context, cr, x, y, width, height);
- }
+ if (shadow_type != GTK_SHADOW_NONE)
+ gtk_render_frame (context, cr, x, y, width, height);
cairo_restore (cr);
gtk_style_context_restore (context);
clip.y = bar_position;
}
- gtk_style_context_save (context);
- gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
-
if (bar_size > 0)
- gtk_render_activity (context, cr,
- clip.x, clip.y,
- clip.width, clip.height);
+ {
+ gtk_style_context_save (context);
+ gtk_style_context_add_class (context, GTK_STYLE_CLASS_PROGRESSBAR);
- gtk_style_context_restore (context);
+ gtk_render_background (context, cr, clip.x, clip.y, clip.width, clip.height);
+ gtk_render_frame (context, cr, clip.x, clip.y, clip.width, clip.height);
+
+ gtk_style_context_restore (context);
+ }
if (priv->label)
{
return;
gtk_entry_prepare_context_for_progress (entry, context);
- gtk_render_activity (context, cr,
- x, y, width, height);
+ gtk_render_background (context, cr, x, y, width, height);
+ gtk_render_frame (context, cr, x, y, width, height);
gtk_style_context_restore (context);
}
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
}
- gtk_render_activity (context, cr, area.x, area.y, area.width, area.height);
+ gtk_render_background (context, cr, area.x, area.y, area.width, area.height);
+ gtk_render_frame (context, cr, area.x, area.y, area.width, area.height);
gtk_style_context_restore (context);
}
gtk_style_context_add_class (context, GTK_STYLE_CLASS_BOTTOM);
}
- gtk_render_activity (context, cr, area.x, area.y, area.width, area.height);
+ gtk_render_background (context, cr, area.x, area.y, area.width, area.height);
+ gtk_render_frame (context, cr, area.x, area.y, area.width, area.height);
gtk_style_context_restore (context);
}
fill_y += priv->trough.height - fill_height;
}
- gtk_render_activity (context, cr,
- fill_x, fill_y,
- fill_width, fill_height);
+ gtk_render_background (context, cr, fill_x, fill_y, fill_width, fill_height);
+ gtk_render_frame (context, cr, fill_x, fill_y, fill_width, fill_height);
gtk_style_context_restore (context);
}